package com.hjw.service;

import com.hjw.entity.Book;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>Project:Academic - BookService<p>
 *
 * @author IvanWei玮 -- maste
 * @version 1.0
 * @DataTime 2025/4/12 23:11
 * @since 1.8
 */
public interface BookService {

    List<Book> findAll();

    Book findById(int id);

    List<Book> findTop(int num);

    List<Book> findByPage(Map<String, Object> map);

    List<Book> findByPageKey(Map<String, Object> map);

    int count(Map<String, Object> map);

    int update(Map<String, Object> map);

    int add(Map<String, Object> book);

}
